package rs2.consultoria.controllers;

import javax.inject.Inject;

import rs2.consultoria.autencicacao.LoggerHandler;
import rs2.consultoria.autencicacao.UsuarioLogado;
import br.com.caelum.brutauth.auth.annotations.HandledBy;
import br.com.caelum.brutauth.auth.rules.SimpleBrutauthRule;
import br.com.caelum.vraptor.Result;

@HandledBy(LoggerHandler.class)
public class AcessoController implements SimpleBrutauthRule {

	@Inject
	Result result;
	
	@Inject
	private UsuarioLogado usuarioLogado;
	
	
	@Override
	public boolean isAllowed(long arg0) {
		// TODO Auto-generated method stub
		return usuarioLogado.getUsuario() != null;
	}
}
